﻿using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;

namespace ManagementApi.Models.BankTransfer;

public class SubmitBatchSalaryPaymentReq
{
    /// <summary>
    /// 工资流水号（渠道流水号）
    /// </summary>
    [Display(Name = "工资流水号")]
    [Required(ErrorMessage = "{0}不能为空")]
    public string TranNo { get; set; } = string.Empty;

    /// <summary>
    /// 合同号
    /// </summary>
    [Display(Name = "合同号")]
    [Required(ErrorMessage = "{0}不能为空")]
    [JsonPropertyName("contractNo")]
    public string? ContractNo { get; set; }

    /// <summary>
    /// 批次号
    /// </summary>
    [Display(Name = "批次号")]
    [Required(ErrorMessage = "{0}不能为空")]
    [JsonPropertyName("batchNo")]
    public string? BatchNo { get; set; }

    /// <summary>
    /// 代发总笔数
    /// </summary>
    [Display(Name = "代发总笔数")]
    [Required(ErrorMessage = "{0}不能为空")]
    [JsonPropertyName("totalCount")]
    public int? TotalCount { get; set; }

    /// <summary>
    /// 代发总金额
    /// </summary>
    [Display(Name = "代发总金额")]
    [Required(ErrorMessage = "{0}不能为空")]
    [JsonPropertyName("totalAmount")]
    public decimal? TotalAmount { get; set; }
}